-- GENERATED SPELL FOR [Taunka Spirit Guide] --


function spell0_31841(pUnit, Event) --@Spiritual Immunity,Self--
pUnit:FullCastSpellOnTarget(58729,pUnit)
pUnit:RegisterEvent('Sorts_31841', 623, 1)
end

function Sorts_31841(pUnit, Event)
local choix_sorts_31841 = math.random(0, 0)
if choix_sorts_31841 == 0 then
pUnit:RegisterEvent('spell0_31841', 1, 1)
end
end

function mob31841_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31841', math.random(1500, 3000), 1)
end

function mob31841_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31841_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31841_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31841, 1, 'mob31841_Action')
RegisterUnitEvent(31841, 2, 'mob31841_Leave')
RegisterUnitEvent(31841, 3, 'mob31841_Kill')
RegisterUnitEvent(31841, 4, 'mob31841_Die')
